/**
 * Copyright (c) Enalean, 2016. All Rights Reserved.
 *
 * This file is a part of Tuleap.
 *
 * Tuleap is free software; you can redistribute it and/or modify
 * it under the terms of the GNU General Public License as published by
 * the Free Software Foundation; either version 2 of the License, or
 * (at your option) any later version.
 *
 * Tuleap is distributed in the hope that it will be useful,
 * but WITHOUT ANY WARRANTY; without even the implied warranty of
 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
 * GNU General Public License for more details.
 *
 * You should have received a copy of the GNU General Public License
 * along with Tuleap. If not, see <http://www.gnu.org/licenses/>.
 */

body.login-page {
    background: linear-gradient(#FFFFFF 0%, #F5F5F5 75%);
    text-align: center;
}

#login-box {
    position: relative;
    display: inline-block;
    width: 400px;
    margin: 100px 0 0;
    padding: 30px;
    box-sizing: border-box;
    background: #ffffff;
    border-radius: 4px;
    border: 1px solid #ededed;

    &:after {
        content: "";
        position: absolute;
        top: 30px;
        right: 20px;
        bottom: 10px;
        left: 20px;
        z-index: -1;
        border-radius: 10px;
        box-shadow: 0 0 40px rgba(0, 0, 0, 0.5);
    }

    #login-help {
        position: absolute;
        top: 10px;
        right: 10px;
        font-size: 18px;
        color: #bbbbbb;
        transition: color 250ms ease-in-out;

        &:hover, &:active {
            text-decoration: none;
            color: #555555;
            transition: color 50ms ease-in-out;
        }

        > span {
            position: relative;
            top: 4px;
            display: inline-block;
            overflow: hidden;
            height: 20px;
            max-width: 0;
            transition: max-width 200ms ease-in;
            font-size: 12px;
        }

        > i::before {
            transition: transform 200ms ease-in-out;
        }

        &:hover {
            > i::before {
                transform: rotate(-360deg);
            }

            > span {
                max-width: 350px;
                transition: max-width 200ms ease;
            }
        }
    }

    > h1 {
        margin: 10px 0 50px;
        font-family: SourceSansPro, Helvetica, Arial, sans-serif;
        font-size: 40px;
        font-weight: 100;
        line-height: normal;
    }

    #login-intro {
        margin: 0 0 30px;
        color: #4db3d0;
        font-size: 13px;
    }

    > form {
        margin: 0;

        > input[type="text"], input[type="password"] {
            display: block;
            width: 100%;
            height: 50px;
            padding: 15px;
            box-sizing: border-box;
            font-size: 18px;
            line-height: normal;
        }

        > button {
            display: block;
            width: 100%;
            margin: 50px 0 10px;
            padding: 15px 5px;
            font-size: 20px;
            box-sizing: border-box;
            line-height: normal;

            &:last-child {
                margin: 50px 0 0;
            }
        }

        #login-ssl {
            margin: 30px 0 -20px;
            text-align: left;
            line-height: normal;

            > input {
                position: relative;
                top: -1px;
                margin: 0 3px 0 0;
            }
        }

        #login-lost-password {
            font-size: 12px;
        }
    }
}
